import request from '@/request/index.js'

const zhpt = 'zhpt' //http://101.42.107.47:30018文档
const base = 'base' //http://101.42.107.47:30020文档

//获取登录日志列表
export const getUserLoginLogListApi = (data) => {
    return request({
        url: `/api/${zhpt}/system/search/loginLog`,
        method: 'POST',
        data,
    })
}

//获取操作日志列表
export const getUserOperateLogListApi = (data) => {
    return request({
        url: `/api/${zhpt}/system/search/operationLog`,
        method: 'POST',
        data,
    })
}

//获取异常登录日志列表
export const getErrorOperateListApi = (data) => {
    return request({
        url: `/api/${zhpt}/system/search/errorLog`,
        method: 'POST',
        data,
    })
}

//获取短信日志列表
export const getNoteLogListApi = (params) => {
    return request({
        url: `/api/${base}/phone/message/log/find`,
        method: 'GET',
        params,
    })
}